package 泛型

class GenericDemo01 {
  def main(args: Array[String]): Unit = {

  }

}

abstract class Message[T](s: T) {
  def get: T = s

}

class IntMessage[Int](v: Int) extends Message

class StrMessage[String](v: String) extends Message
